﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CompanyMoneyList.aspx.cs" Inherits="admin_company_CompanyMoneyList" %>


<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>阳澄湖牌后台管理 </title>
    <link href="../main.css" rel="stylesheet" type="text/css" />

</head>
<body>
    <form id="form1" runat="server">
    <div>
<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#F1F4F7">
<tr>
<td height="382" align="center" valign="top">
    <table id="tblSearch" runat="server" width="98%" border="0" cellpadding="0" cellspacing="4" bgcolor="#FAFBFC" class="img" style="border-bottom:0;">
    <tr>
      <td width="2%"><img height="22" alt="SEARCH" src="../images/icon_search.gif" width="26" border="0" /></td>
      
         <td id="tdLevelName" runat="server" width="8%" style="text-align:right;">级别</td>
           <td id="tdLevelValue" runat="server" width="12%">
              <asp:DropDownList ID="ddlLevel" runat="server">
              </asp:DropDownList>
            </td>
      
       <td id="tdCompany" runat="server" width="8%" style="text-align:right;">商家</td>
      <td id="tdCompanySelect" runat="server" width="24%">
              <asp:DropDownList ID="ddlCompany" runat="server">
              </asp:DropDownList>
            </td>
            <td width="12%" >商家关键字</td>
           <td width="10%"><asp:TextBox id="txtKeywords" runat="server"></asp:TextBox> </td>

            <td style="text-align:right;"></td>
          <td>
          <asp:ImageButton ID="ibtnSearch" ImageUrl="../images/button04.gif" runat="server" OnClick="ibtnSearch_Click" />
          </td>
      </tr>
      </table>
  <br />
  
<asp:GridView ID="GridView1" runat="server" Width="98%" CellPadding="4" 
        ForeColor="#333333" DataKeyNames="id" AutoGenerateColumns="False"  OnRowDataBound="GridView1_RowDataBound"    OnSorting="GridView1_Sorting"
        AllowPaging="True" pagesize="100" BorderStyle="Solid" BorderWidth="1px" 
      ShowFooter="false" EmptyDataText="没有数据记录！！" AllowSorting="True" >
        <Columns>
          <asp:BoundField HeaderText="编号" DataField="CompanyCode" sortexpression="CompanyCode" />
          <asp:BoundField HeaderText="公司名称" DataField="CompanyName" sortexpression="CompanyName" />
          <asp:BoundField HeaderText="级别" DataField="CompanyLevel" HeaderStyle-Width="40px" sortexpression="CompanyLevel" />
          <asp:BoundField HeaderText="联系人" DataField="Linker" sortexpression="Linker" />
          <asp:BoundField HeaderText="联系方式" DataField="Telephone" sortexpression="Telephone" />
          <asp:BoundField HeaderText="预存款(元)" DataField="InMoney" sortexpression="InMoney" />
          <asp:BoundField HeaderText="应付款(元)" DataField="OutMoney" sortexpression="OutMoney" />
        <asp:TemplateField ShowHeader="False" HeaderText="操作"  HeaderStyle-Width="100px">
                <ItemTemplate>
                  <div style="float:left;">
                  <div id="divInMoney" runat="server" style="float:left; display:block;"><a href="CompanyMoney.aspx?id=<%# Eval("id") %>&type=in" title="入账">入账</a></div>
                  <div id="divOutMoney" runat="server" style="float:left; padding-left:5px; display:block;"> <a href="CompanyMoney.aspx?id=<%# Eval("id") %>&type=out" title="出账">出账</a>   </div>
                  <div id="divDetail" runat="server" style="float:left; padding-left:5px; display:block;">  <a  href="OutInDetail.aspx?id=<%# Eval("id") %>"  title="详细">详细</a>  </div>
               </div>
                </ItemTemplate>
        </asp:TemplateField>
        </Columns>
             <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />             
             <PagerStyle BackColor="White" ForeColor="#333333" HorizontalAlign="Center" Font-Bold="True" Font-Size=30px />
             <HeaderStyle BackColor="#E2E7EB" Font-Bold="True" ForeColor="Black" HorizontalAlign="Left" />
             <AlternatingRowStyle BackColor="White" />
             <PagerSettings Visible="False" />
        </asp:GridView>
     <table width="98%" border="0" cellspacing="0" cellpadding="0">
       <tr>
         <td>&nbsp;</td>
         <td height="25" align="right" bgcolor="#E9ECEF"><asp:Label ID="LblRecordCount" runat="server"></asp:Label>
            <asp:Label ID="LblCurrentIndex" runat="server"></asp:Label>
            <asp:Label ID="LblPageCount" runat="server"></asp:Label>
            &nbsp;&nbsp;&nbsp;&nbsp;
            <asp:LinkButton ID="btnFirst" CommandArgument="first" OnClick="PagerButtonClick" runat="server">首 页</asp:LinkButton> 
            <asp:LinkButton ID="btnPrev" CommandArgument="prev" OnClick="PagerButtonClick" runat="server">上一页</asp:LinkButton> 
            <asp:LinkButton ID="btnNext" CommandArgument="next" OnClick="PagerButtonClick" runat="server">下一页</asp:LinkButton> 
            <asp:LinkButton ID="btnLast" CommandArgument="last" OnClick="PagerButtonClick" runat="server">尾 页</asp:LinkButton> 
             跳转到第<asp:DropDownList ID="ddlCurrentPage" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged"> </asp:DropDownList>页&nbsp;
         </td>
       </tr>
    </table>
</td>
    </tr>
  </table>
    </div>
    </form>
</body>
</html>
